package barratt;

import org.stat.model.estimation.ModelEstimator;
import org.stat.model.parameter.ParamNotEstimatedException;
import org.stat.model.parameter.Parameter;

/**
 * Class description
 *
 * @version        Enter version here..., 12/12/02
 * @author         Susanta Tewari
 */
public class BarrattModelEstimator extends ModelEstimator {

    /** Field description */
    private final double k;

    public BarrattModelEstimator(final double k) {

        super();

        this.k = k;
    }

    @Override
    public void estimate() throws ParamNotEstimatedException {

        final Parameter kParam = this.model.getParameters()[0];

        kParam.setEstimatedValue(this.k);
    }
}
